package com.spring.log;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * @author:liuwei
 * @creatdate:2021-07-15-14:38
 */
public class Log implements MethodBeforeAdvice {
	@Override
	//Method：要执行的目标对象的方法
	//orgs: 参数
	//target: 目标对象
	public void before(Method method, Object[] orgs, Object target) throws Throwable {
		System.out.println(target.getClass().getName() + "的" + method.getName() + "被执行了");
	}
}
